#pragma once

#include <QObject>
#include <QVariant>

#include "XmlRpcServer.h"
#include "XmlRpcService.h"

#include "TaskModel.h"

class RsGisRpcMaster : public XmlRpcService
{
	Q_OBJECT

public:
	RsGisRpcMaster(TaskModel* model, QObject* parent = 0);

	void initService() override;

	void GetService();

private slots:
	QVariantList CallServer(QVariantList ArgList);
	QVariant CallforResult();

signals:
	void outMessage(QString data);
protected:
	int iTaskNum = 0;
	TaskModel* taskmodel;
};